

package top.continew.admin.question.manger.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.continew.admin.question.dto.QuestionErrorCorrectionDto;
import top.continew.admin.question.dto.QuestionErrorCorrectionQueryDto;
import top.continew.admin.question.model.QuestionErrorCorrection;

import java.util.List;

/**
 * Created with Mac IntelliJ IDEA
 *
 * @Title: QuestionErrorCorrectionService
 * @Package: com.yunshi.service
 * @Author: RHY
 * @Description:
 * @Date: 2021/3/26 16:21
 */
public interface QuestionErrorCorrectionService extends IService<QuestionErrorCorrection> {
    /**
     * 添加题目纠错信息
     *
     * @param userId
     * @param questionId
     * @param errorContent
     */
    void addQuestionErrorCorrection(Long userId, Long questionId, String errorContent);

    /**
     * 采纳纠错信息
     *
     * @param id
     */
    void acceptStatus(Long id);

    /**
     * 纠错信息查询
     *
     * @param queryDto
     *
     * @return
     */
    List<QuestionErrorCorrectionDto> pageList(QuestionErrorCorrectionQueryDto queryDto);
}
